home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pcc12d.zip / DOS.H < prev    next >
C/C++ Source or Header  |  1992-12-29  |  883b  |  41 lines

  1. /*    dos.h    */
  2.  
  3. #ifndef __DOS_H
  4. #define __DOS_H
  5.  
  6. extern short _doserrno;
  7.  
  8. struct WORDREGS {
  9.     unsigned int    ax, bx, cx, dx, si, di, cflag, flags;
  10.     };
  11.  
  12. struct BYTEREGS {
  13.     unsigned char    al, ah, bl, bh, cl, ch, dl, dh;
  14.     };
  15.  
  16. union    REGS    {
  17.     struct    WORDREGS x;
  18.     struct    BYTEREGS h;
  19.     };
  20.  
  21. struct    SREGS    {
  22.     unsigned int    es;
  23.     unsigned int    cs;
  24.     unsigned int    ss;
  25.     unsigned int    ds;
  26.     };
  27.  
  28. struct    REGPACK {
  29.     unsigned    r_ax, r_bx, r_cx, r_dx;
  30.     unsigned    r_bp, r_si, r_di, r_ds, r_es, r_flags;
  31.     };
  32.  
  33. int    bdos(/* int, unsigned, unsigned */);
  34. int    bdosptr(/* int, void*, unsigned */);
  35. int    int86(/* int, union REGS*, union REGS* */);
  36. int    int86x(/* int, union REGS*, union REGS*, struct SREGS* */);
  37. int    intdos(/* union REGS*, union REGS* */);
  38. int    intdosx(/* union REGS*, union REGS*, struct SREGS* */);
  39. void segread(/* struct SREGS* */);
  40. void intr(/* int, struct REGPACK* */);
  41.